<%-- 
    Document   : nuevoEspCap
    Created on : 1/07/2009, 02:37:39 PM
    Author     : ADMINISTRADOR
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

<script language="javascript" src="../js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form id="frmNewEsc">
<table width="600" border="0">
  <tr>
    <td colspan="7" align="center" class="texto3">
        <h:outputLabel value="Mantenimiento de Especialidad / Capítulo" styleClass="texto3"/>
    </td>
  </tr>
   <tr><td height="20">
     <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
  <tr><td><fieldset><legend>Registrar Especialidad</legend>
      <table width="600" border="0">
      <tr>
    <td width="47">&nbsp;</td>
    <td width="150" align="left">&nbsp;</td>
    <td width="82">&nbsp;</td>
    <td width="66">&nbsp;</td>
    <td width="69">&nbsp;</td>
    <td width="60">&nbsp;</td>
    <td width="80">&nbsp;</td>
  </tr>
  <tr>
    <td height="24">&nbsp;</td>
    <td width="150" align="left"><h:outputLabel value="Consejo :" styleClass="texto20" /></td>
    <td colspan="4" align="left">
        <h:selectOneMenu value="#{espCapController.espCap.cdeCodigo}"  styleClass="fondo012">
         <f:selectItem itemLabel="----Consejo----"/>
         <f:selectItems value="#{consejoController.selectListaItem}" />
     </h:selectOneMenu></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="24">&nbsp;</td>
    <td width="150" align="left"><h:outputLabel value="Capítulo :" styleClass="texto20" /></td>
    <td colspan="4" align="left">
        <h:selectOneMenu value="#{espCapController.espCap.capCodigo}" styleClass="fondo012" >
        <f:selectItem itemLabel="----Capítulo----"/>
        <f:selectItems value="#{capituloController.selectListaItem}" />

     </h:selectOneMenu></td>
    <td>&nbsp;</td>
  </tr>
  <%--tr>
    <td height="24">&nbsp;</td>
    <td width="150" align="left">
     <h:outputLabel value="Universidad :" styleClass="texto20" /></td>
    <td colspan="4" align="left">
        <h:selectOneMenu value="#{espCapController.universidad}" styleClass="fondo012">
         <f:selectItem itemLabel="----Seleccionar----"/>
         <f:selectItems value="#{universidadController.selectListaItem}" />
         <a4j:support ajaxSingle="true" event="onchange" reRender="facultad" />
     </h:selectOneMenu></td>
    <td>&nbsp;</td>
  </tr>
      <tr>
    <td height="24">&nbsp;</td>
    <td width="150" align="left">
     <h:outputLabel value="Facultad :" styleClass="texto20" /></td>
    <td colspan="4" align="left">
        <h:selectOneMenu id="facultad" value="#{escuelaController.facultad}" styleClass="fondo012" >
        <f:selectItem itemLabel="----Seleccionar----"/>
         <f:selectItems value="#{facultadController.selectListaItem}" />
         <a4j:support ajaxSingle="true" event="onchange" reRender="escuela" />
     </h:selectOneMenu></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="24">&nbsp;</td>
    <td width="150" align="left">
     <h:outputLabel value="Escuela :" styleClass="texto20" /></td>
    <td colspan="4" align="left">
       <h:selectOneMenu id="escuela" value="#{especialidadController.escuela}"  styleClass="fondo012">
            <f:selectItem itemLabel="----Seleccionar----"/>
            <f:selectItems value="#{escuelaController.selectListaItem}" />
            <a4j:support ajaxSingle="true" event="onchange" reRender="especialidad" />
     </h:selectOneMenu></td>
    <td>&nbsp;</td>
  </tr--%>
    <tr>
    <td height="24">&nbsp;</td>
    <td width="150" align="left">
     <h:outputLabel value="Especialidad :" styleClass="texto20" /></td>
    <td colspan="4" align="left">
    <h:selectOneMenu id="especialidad" value="#{espCapController.espCap.espCodigo}"  styleClass="fondo012">
        <f:selectItem itemLabel="----Seleccionar----"/>
        <f:selectItems value="#{especialidadController.selectListaEspecialidades}"/>
        <a4j:support ajaxSingle="true" event="onchange" reRender="tit" />
      </h:selectOneMenu></td>
    <td>&nbsp;</td>
  </tr>
  <tr><td colspan="7" height="15" ></td></tr>
  <tr>
    <td>&nbsp;</td>
    <td width="150" align="left"></td>
    <td colspan="2" align="right">
	    <h:commandButton action="#{espCapController.grabar}" value="Guardar" styleClass="enlace9" /></td>
    <td colspan="3" align="center">
        <h:commandButton action="ir_a_listar" value="Cancelar" styleClass="enlace9" /></td>
    </tr>
      </table>
  </fieldset>
      </td>
  </tr>
  
</table>
</h:form>
</f:view>
